#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
class QPushButton;
QT_END_NAMESPACE

namespace Ui {
class MainWindow;
}

class MonitorWindow;
class DatabaseWindow;
class LoginWindow;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void onMonitorButtonClicked();
    void onDatabaseButtonClicked();
    void onLogoutButtonClicked();
    void onChildWindowClosed();

protected:
    void closeEvent(QCloseEvent *event) override;

private:
    Ui::MainWindow *ui;
    MonitorWindow *monitorWindow;
    DatabaseWindow *databaseWindow;
    
    void setupConnections();
};

#endif // MAINWINDOW_H